package cn.minhx.dtm.starter.core.model;

import lombok.Getter;

/**
 * 任务状态枚举
 *
 * @author min
 */
@Getter
public enum TaskStatus {

	/** 待处理状态 */
	PENDING("PENDING", "等待处理"),

	/** 处理中状态 */
	PROCESSING("PROCESSING", "处理中"),

	/** 处理成功状态 */
	SUCCESS("SUCCESS", "处理成功"),

	/** 处理失败状态 */
	FAILED("FAILED", "处理失败"),

	/** 已取消状态 */
	CANCELED("CANCELED", "已取消");

	private final String code;
	private final String desc;

	TaskStatus(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
}
